﻿using System.Data.Entity.ModelConfiguration;

namespace OBUCare.Core.Models.Mapping
{
    public class View_OBU_INFO_BYMap : EntityTypeConfiguration<View_OBU_INFO_BY>
    {
        public View_OBU_INFO_BYMap()
        {
            // Primary Key
            this.HasKey(t => new { t.OBU_NO, t.USER_NO});



            this.Property(t => t.OBU_NO)
                .IsRequired()
                .IsFixedLength()
                .HasMaxLength(16);


            // Table & Column Mappings
            this.Property(t => t.OBU_NO).HasColumnName("OBU_NO");
            this.Property(t => t.LAST_OBU_NO).HasColumnName("LAST_OBU_NO");
            this.Property(t => t.USER_NO).HasColumnName("USER_NO");
            this.Property(t => t.REGISTE_DATE).HasColumnName("REGISTE_DATE");

        }
    }
}
